﻿using Abp.Application.Services.Dto;
using shenghua.Commodity.Commodities;
using shenghua.Commodity.Commodities.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Member.Collection.Dto
{
    public class CollectionCommodityDto: EntityDto
    {
        public int CommodityId { get; set; }
        public int? ShoppingOptionId { get; set; }
        public DateTime CreationTime { get; set; }

        public string CommodityName { get; set; }
        public double CommodityPrice { get; set; }
        public string CommodityPicture { get; set; }
        public Dictionary<string, string> ShoppingOptionParameters { get; set; }

        public CollectionCommodityDto(CollectionCommodity input)
        {
            Id = input.Id;
            CommodityId = input.CommodityId;
            ShoppingOptionId = input.ShoppingOptionId;
            CreationTime = input.CreationTime;
            CommodityName = input.CommodityName;
            CommodityPrice = input.CommodityPrice;
            CommodityPicture = input.CommodityPicture;
            ShoppingOptionParameters = input.ShoppingOptionParameters;
        }
    }
}
